package com.klxedu.ms.gateway.security.access.impl;

import java.util.HashMap;

import org.springframework.http.HttpMethod;

import com.klxedu.ms.gateway.security.access.IResourceService;

public class MockResourceService implements IResourceService {
	/*
	 * (non-Javadoc)
	 * 
	 * @see com.goldgov.gateway.security.access.IResourceService#findAll()
	 */
	@Override
	public HashMap<String, String[]> findAll() {
		HashMap<String, String[]> res = new HashMap<String, String[]>();
		String[] roles = { "ADMIN" };
		//res.put("/user#"+HttpMethod.GET, null);
		//res.put("/user#"+HttpMethod.POST, null);
		res.put("/user_admin#"+HttpMethod.GET, roles);
		return res;
	}
}
